package com.lanou.bbs.entity;


import javax.validation.constraints.Pattern;

public class User {
    @Pattern(regexp = "[a-zA-Z]([a-zA-Z0-9])+")
    private Integer uid;
    private String name;
    private String password;
    private String nickname;
    private String gender;
    private String regDate;
    private Integer state;
    private String icon;


    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender='" + gender + '\'' +
                ", regDate='" + regDate + '\'' +
                ", state=" + state +
                ", icon='" + icon + '\'' +
                '}';
    }

    public Integer getUid() {
        return uid;
    }

    public User setUid(Integer uid) {
        this.uid = uid;
        return this;
    }

    public String getName() {
        return name;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getNickname() {
        return nickname;
    }

    public User setNickname(String nickname) {
        this.nickname = nickname;
        return this;
    }

    public String getGender() {
        return gender;
    }

    public User setGender(String gender) {
        this.gender = gender;
        return this;
    }

    public String getRegDate() {
        return regDate;
    }

    public User setRegDate(String regDate) {
        this.regDate = regDate;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public User setState(Integer state) {
        this.state = state;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public User setIcon(String icon) {
        this.icon = icon;
        return this;
    }
}
